﻿using Bookify.Domain.Abstractions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace Bookify.Domain.Bookings
{
    public static class BookingErrors
    {
        public static Error NotFound = new(
            "Booking.Found",
            "找不到具有指定标识符的预订"
            );

        public static Error Overlap = new(
            "Booking.Overlap",
            "当前的预订与已有的预订重叠"
            );

        public static Error NotReserved = new(
            "Booking.NotReserved",
            "预订没有待处理,不是待定状态");

        public static Error NotConfirmed = new(
            "Booking NotReserved",
            "预订没有得到确认"
            );

        public static Error AlreadyStarted = new(
            "Booking.AlreadyStarted",
            "预定已经开始");
    }
}
